<template>
  <div>
    <div class="custom-mark"></div>
    <div class="custom-popup-bg popup-show">
      <div class="popup-body">
        <div class="exam-container exam-finish">
          <div class="exam-popup">
            <div class="exam-popup__title">SECTION SUBMIT</div>
            <div class="exam-popup__content">
              <div class="text">Once you leave this section and proceed to the next, you WILL NOT be
                able to return to it. </div>
              <div class="text">ARE YOU SURE you wish to submit this section?</div>
              <div class="text">Click on RETURN to continue working.</div>
              <div class="text">Click on SUBMIT if you are sure you want to submit this section and
                proceed to the next.</div>
              <div class="text">This fuction is not available in the real computer-delivered IELTS
                test.</div>
            </div>
            <div class="exam-popup__footer">
              <div class="exam-button info" @click="hideSubmitModal">RETURN</div>
              <div class="exam-button info" @click="testendedModal = true">SUBMIT</div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <testended v-show="testendedModal"></testended>
  </div>
</template>

<script>
  import testended from './testended.vue'
  export default {
    name: 'custom',
    data() {
      return {
        testendedModal: false
      }
    },
    components: {
      testended
    },
    methods: {
      hideSubmitModal() {
        this.$emit('hideSubmitModal');
      }
    },
    mounted() {

    }
  }

</script>

<style lang="less">
  .custom-mark {
    position: fixed;
    z-index: 9999;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    -ms-touch-action: none;
    touch-action: none;
  }

  .custom-popup-bg.popup-show {
    left: 0;
    -webkit-animation: showPopup-data-v-6e7d1c03 .2s linear both;
    animation: showPopup-data-v-6e7d1c03 .2s linear both;
  }

  .custom-popup-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 100%;
    z-index: 100001;
    background-color: rgba(0, 0, 0, .4);
    overflow-x: hidden;
    overflow-y: auto;
    text-align: center;

    .popup-body {
      text-align: left;
      position: relative;
      border: none;
      border-radius: 4px;
      -webkit-box-shadow: 0 0 4px #8b8b8b;
      box-shadow: 0 0 4px #8b8b8b;
      background-color: transparent;
      width: 100%;
      height: 100%;
      overflow: hidden;
    }

  }

  div.exam-finish {
    padding-top: 0;
  }

  div.exam-finish,
  div.exam-popup__footer {
    justify-content: center;
  }

  .exam-container {
    width: 100%;
    height: 100%;
    padding-top: 1.19792rem;
    padding-bottom: 12px;
    font-family: Arial;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow-y: auto;
  }

  .exam-popup {
    display: flex;
    flex-direction: column;
    width: 38.35417rem;
    background: #fff;
    -webkit-box-shadow: 0 1px 2px 0 #b8bdc9;
    box-shadow: 0 1px 2px 0 #b8bdc9;
    border-radius: 8px;
  }

  .exam-popup__title {
    height: 3.22917rem;
    line-height: 3.22917rem;
    padding-left: .78125rem;
    font-size: 1.04167rem;
    background: #000;
    font-weight: 700;
    color: #fff;
    vertical-align: middle;
  }

  .exam-popup__content {
    display: flex;
    flex-direction: column;
    padding-left: .83333rem;
    font-size: .78125rem;
    color: #000;
    margin-top: .52083rem;

    .text {
      height: 1.97917rem;
      line-height: 1.97917rem;
      font-size: .78125rem;
    }
  }

  .exam-popup__footer {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 3.54167rem;
  }

  .exam-finish .exam-button {
    width: 10.41667rem;
    margin-left: 1.40625rem;
    margin-right: .57292rem;
  }

  .exam-button.info {
    background: #fff;
    -webkit-box-shadow: 0 2px 2px 0 #8a898a;
    box-shadow: 0 2px 2px 0 #8a898a;
    color: #172a3f;
  }

  .exam-button {
    height: 1.97917rem;
    line-height: 1.97917rem;
    border-radius: 4px;
    vertical-align: middle;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  .exam-button.info:active {
    background: #2464c5;
    border: 3px solid #99c2fa;
    color: #fff;
  }

</style>
